
/**
 * resource handler interface for base operation.
 */
export interface ResourceApi<T> {

    /**
     * get all resource.
     */
    getAll(): T;

    /**
     * update single resource item.
     * @param t 
     */
    update(t: any);

    /**
     * del single resource.
     * @param t 
     */
    remove (t: any): void;

}